package com.prs.crm.domain.oa;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.ManyToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.doc.Document;

/**
 * @author 兰小刚
 * @version 创建时间：2010-8-24 上午10:21:28 类说明
 */
@Entity
@Table(name = "oa_oataskkeyword")
public class OaTaskKeyWord extends BaseEntity {

	private static final long serialVersionUID = -4867503240956693033L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	private String keyName;

	@Lob
	private String keyRemark;

	@ManyToMany(mappedBy="oaTaskKeyWord",fetch = FetchType.LAZY)
	private Set<Document> documents = new HashSet<Document>();

	public Set<Document> getDocuments() {
		return documents;
	}

	public void setDocuments(Set<Document> documents) {
		this.documents = documents;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getKeyName() {
		return keyName;
	}

	public void setKeyName(String keyName) {
		this.keyName = keyName;
	}

	public String getKeyRemark() {
		return keyRemark;
	}

	public void setKeyRemark(String keyRemark) {
		this.keyRemark = keyRemark;
	}
}
